package com.market.service.admin.impl;

import com.market.bean.MarketGoodsProductExample;
import com.market.mapper.MarketGoodsProductMapper;
import com.market.service.admin.AdminGoodsProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author tan
 * @date 2023年01月02日 19:36
 */
@Service
public class AdminGoodsProductServiceImpl implements AdminGoodsProductService {
    @Autowired
    MarketGoodsProductMapper goodsProductMapper;

    @Override
    public Long count() {
        MarketGoodsProductExample example = new MarketGoodsProductExample();
        MarketGoodsProductExample.Criteria criteria = example.createCriteria();
        criteria.andDeletedEqualTo(false);
        long productTotal=goodsProductMapper.selectSum();
        return productTotal;
    }
}
